import http from '../http/request'

// 文章列表数据
function getHerosList(params: any) {
    return http.get('/api/rest/heros', {
        params
    })
}

// 获取英雄数据
function getRestHeros() {
    return http.get('/api/rest/heros')
}

// 获取装备数据
function getEquipList() {
    return http.get('/api/rest/items')
}

// 新增英雄
function addRestHeros(params: any) {
    return http.post('/api/rest/heros', {
        ...params
    })
}

export {
    getHerosList,
    getRestHeros,
    getEquipList,
    addRestHeros
}